<!DOCTYPE html>
<html lang="en">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>找回密码</title>
    <link rel="stylesheet" href="../css/normalize.min.css">
    <link rel="stylesheet" href="../css/style.css">
</head>
<body><!-- partial:index.partial.html -->
<div class="fdcontainer"><!-- Sign Up -->
    <div class="fdcontainer__form">
        <form action="#" class="form" id="form1" th:object="${user}" th:action="@{/findpwd}">
            <h2 class="form__title">找回密码</h2>
            <input type="text" placeholder="用户名" class="input" th:field="*{name}">
            <input type="text" placeholder="电话号码" class="input" th:field="*{tel}">
            <button class="btn" id="submit_btn">找回密码</button>
        </form>
    </div>
</div><!-- partial -->
<!--<script src="../js/script.js"></script>-->
<script type="text/javascript">
    window.onload=function(){
        var btn=document.getElementById('submit_btn');
        var form=document.getElementById('form1');
        btn.onclick=function(){
            form.submit();
        }
    }
</script>
</body>
</html>